package com.bjtu.literatureclient.service.team;

import com.bjtu.literatureclient.domain.base.BaseModel;
import com.bjtu.literatureclient.domain.team.Team;

import java.util.List;

public interface ITeamService {
	/* List<Team> query(BaseModel baseModel); */
	List<Team> query(Team team);
	/* int update(BaseModel baseModel); */
    int update(Team team);
    int insert(Team team);
    int delete(BaseModel baseModel);
    String getNewTeamNo();
    
	/* 
	* (Sikai Lin: 2020年2月19日)
	* @Description: 返回用户所在团队状态
	* @param teamNo
	* @return: 若为0，则为未授权；若为2，则为授权。
	*/
	int checkTeamState(String teamNo);
	
	Team selectTeamById(String teamNo);
	String checkTeamEmail(String teamEmail);
}
